package io.geekidea.springbootplus.system.service;

import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.system.entity.SysFavourite;
import io.geekidea.springbootplus.system.vo.SysFavouriteVo;

import java.util.List;

public interface SysFavouriteService extends BaseService<SysFavourite> {

    //将商品加入收藏夹
    boolean addToFavorites(SysFavourite favourite)throws Exception;

    //将商品移出收藏夹
    boolean deleteFavorites(Integer id)throws Exception;

    //移出收藏夹所有物品
    boolean deleteAllFavorites(List<Integer> ids)throws Exception;

    //根据编号获取收藏夹的所有信息
    List<SysFavouriteVo> findFavouriteById(Integer id)throws Exception;

}
